<template>
    <footer class="footer-map">
        <section class="footer-map-top">
            <figure>
                <img src="@/assets/images/logo.png" alt="" />
            </figure>

            <ul>
                <li>
                    <h2>Integrations</h2>
                    <a href="https://apps.shopify.com/podpartner" target="_blank">Shopify</a>
                    <nuxt-link to="/document/etsy-description">Etsy</nuxt-link>
                    <a href="https://www.wix.com/market?appMarketParams=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb3V0ZSI6InByZXZpZXciLCJhcHBEZWZJZCI6IjE1MDE4NzFlLWJlZDYtNGM4NC04ZDFiLTg2MTEwNDkzMTQ1ZSIsImxhbmd1YWdlQ29kZSI6ImVuIiwiaWF0IjoxNjU2NjY5MzU0fQ.qa_eY-Iu84zUyJwQ3MABkv0uIfT0qdGYQP-X8fsLaLU"
                       target="_blank">Wix</a>
                    <nuxt-link to="/document/woo-description">WooCommerce</nuxt-link>
                    <nuxt-link to="/document/square-description">Squarespace</nuxt-link>
                    <!-- <a @click="linkToWoo()" target="view_window">Shopify</a> -->
                </li>
                <li>
                    <h2>Discover</h2>
                    <nuxt-link to="/product">Products</nuxt-link>
                    <nuxt-link to="/document/how-work">How it works</nuxt-link>
                    <nuxt-link to="/document/help-center">Help center</nuxt-link>
                    <nuxt-link to="/document/refund-policy">Refund policy</nuxt-link>
                </li>
                <li>
                    <h2>PODpartner</h2>
                    <nuxt-link to="/document/about-us">About us</nuxt-link>
                    <nuxt-link to="/document/terms-service">Terms of service</nuxt-link>
                    <nuxt-link to="/document/privacy-policy">Privacy policy</nuxt-link>
                    <nuxt-link to="/document/copyright-notice">Copyright notice</nuxt-link>
                </li>
                <li>
                    <h2>Contact us</h2>
                    <!-- <span>24/7 Merchant support <br />Email: service@podpartner.com</span> -->
                    <span>If you have any questions or concerns, please do not hesitate to contact us. We would love to
                        hear from you, contact us on: <br>Email: service@podpartner.com</span>

                    <div class="contact-button">
                        <div class="top-btn" @click="openWindow('https://m.me/PodPartnerCo')">
                            <img src="https://img.podpartner.com/static/images-20231130/messenger.png"
                                 style="width: 18px; height: 18px" alt="" />
                            <a @click.prevent href="https://m.me/PodPartnerCo">Messenger</a>
                        </div>
                        <div class="top-btn" @click="gotoWhatsapp()">
                            <img src="https://img.podpartner.com/static/images-20231130/whatsapp-active.png"
                                 style="width: 18px; height: 18px;" alt="" />
                            <a>Whatsapp</a>
                        </div>
                    </div>

                    <!-- <div class="top-btn" @click="openEmail()">
                        <i class="iconfont icon-zhandianditu-youjian"></i>
                        <a href="https://www.podpartner.com" @click.prevent>Send Email</a>
                    </div> -->
                </li>
            </ul>
            <div class="official-social">
                <div class="official-social-link">
                    <a href="https://www.facebook.com/PODpartnerCo/" target="view_window"
                       aria-label="View our facebook page"></a>
                    <a href="https://twitter.com/PodPartner_Co" target="view_window"
                       aria-label="View our twitter page"></a>
                    <a href="https://www.instagram.com/podpartner_co/" target="view_window"
                       aria-label="View our instagram page"></a>
                    <!-- <a style="display:none;"></a> -->
                    <a href="https://www.pinterest.com/pod_partner/" target="view_window"
                       aria-label="View our Pinterest page"></a>
                    <a href="https://www.youtube.com/channel/UCk2TkjUhQZjaoybrq3pjfFA" target="view_window"
                       aria-label="View our youtube page"></a>
                </div>
                <div class="official-social-payment">
                    <span>Supported payment methods:</span>
                    <img src="https://img.podpartner.com/static/images-20230202/footer-payment.png?t=1721642472943"
                         alt="">
                </div>
            </div>
        </section>

        <section class="footer-map-bottom">
            <p>© {{ new Date().getFullYear() }} PODpartner, Inc. All rights reserved.</p>
        </section>

    </footer>
</template>
<script>
export default {
    name: "Footer",
    data () {
        return {

        };
    },
    methods: {
        jumpRouter (url, parma) {
            if (parma) {
                this.$router.push({ path: url, query: { ...parma } });
            } else {
                this.$router.push(url);
            }
        },
        openWindow (url) {
            window.open(url, "_blank");
        },
        openEmail () {
            var email = "service@podpartner.com";
            var subject = "";
            var emailBody = "";
            var attach = "path";

            let path =
                "mailto:" +
                email +
                "?subject=" +
                subject +
                "&body=" +
                emailBody +
                "&attach=" +
                attach;
            window.open(path, "_blank");
        },

        gotoWhatsapp () {
            this.$gmeRepore('whatsapp').then(e => {
                let path = "http://wa.me/message/4V7UTTIJDLJFD1"
                window.open(path, "_blank");
            })
        }

    },
};
</script>
<style lang="scss" scoped>
.footer-map {
    border-top: #dcdcdc 1px solid;
    box-sizing: border-box;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;

    >section {
        width: 100%;
        border-top: #dcdcdc 1px solid;
    }

    .footer-map-top {
        max-width: 1080px;
        width: 100%;
        padding: 100px 0;
        display: flex;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        border: none;

        >figure {
            width: 100%;
            margin-bottom: 52px;

            img {
                width: 152px;
                height: 26px;
                margin: 0 40px 0 0;
            }
        }

        ul {
            display: flex;
            width: 100%;
            font-size: 14px;
            color: #555;
            display: flex;
            flex-direction: row;
            justify-content: space-between;

            li {
                width: 170px;
                justify-self: flex-end;
                text-align: left;

                &:last-child {
                    width: 220px;

                    &>span {
                        cursor: pointer;
                        display: inline-block;
                        font-size: 14px;
                        color: #555555;
                        line-height: 20px;
                        margin-bottom: 16px;
                    }

                    &:hover {
                        span {
                            cursor: default;
                            opacity: 1 !important;
                        }
                    }
                }

                h2 {
                    font-size: 18px;
                    font-family: Roboto, Roboto;
                    font-weight: 500;
                    color: #000000;
                    cursor: default;
                    margin: 0 0 16px;
                }

                p,
                a {
                    &:hover {
                        color: #ea4c89;
                        text-decoration: underline;
                    }

                    display: block;
                    color: #555;
                    cursor: pointer;
                    margin: 0 0 16px;
                }

                .top-btn {
                    &:hover {
                        cursor: pointer;
                        // border-color: #ea4c89;
                        background: #f6f6f6;
                    }

                    >a {
                        &:hover {
                            color: #000000 !important;
                            text-decoration: none;
                        }

                        color: #000000;
                        margin: 0 0 0 4px;
                    }

                    font-size: 14px;
                    color: #000000;
                    box-sizing: border-box;
                    height: 34px;
                    background: #ffffff;
                    width: 120px;
                    border-radius: 8px;
                    border: 1px solid #e6e6e6;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    margin: 0 0 12px 0;

                    i {
                        &:nth-child(2) {
                            color: #fbbc06;
                        }

                        font-size: 24px;

                        &.icon-zhandianditu-kaishiliaotian {
                            color: #48c4ef;
                        }

                        &.icon-zhandianditu-youjian {
                            color: #f8cf1e;
                        }
                    }
                }
            }

            .contact-button {
                display: flex;

                .top-btn+.top-btn {
                    margin-left: 6px;
                }
            }
        }

        .official-social {
            width: 100%;
            display: flex;
            margin-top: 30px;
            align-items: flex-end;

            .official-social-link {
                display: flex;
                flex-direction: row;
                flex: 1;

                a {
                    width: 32px;
                    height: 32px;
                    color: #737373;
                    font-size: 0;
                    margin-right: 20px;
                    cursor: pointer;
                    background: url('https://img.podpartner.com/static/images-20230202/footer-link-sprites.png') no-repeat;
                    background-size: 240px 84px;

                    &:nth-child(1) {
                        background-position: 0 0;

                        &:hover {
                            background-position: 0 -52px;
                        }
                    }

                    &:nth-child(2) {
                        background-position: -52px 0;

                        &:hover {
                            background-position: -52px -52px;
                        }
                    }

                    &:nth-child(3) {
                        background-position: -104px 0;

                        &:hover {
                            background-position: -104px -52px;
                        }
                    }

                    &:nth-child(4) {
                        background-position: -156px 0;

                        &:hover {
                            background-position: -156px -52px;
                        }
                    }

                    &:nth-child(5) {
                        background-position: -208px 0;

                        &:hover {
                            background-position: -208px -52px;
                        }
                    }
                }
            }

            .official-social-payment {
                span {
                    display: block;
                    font-size: 12px;
                    font-family: Roboto-Regular, Roboto;
                    font-weight: 400;
                    color: #919191;
                    line-height: 14px;
                }

                img {
                    margin-top: 8px;
                    height: 24px;
                }
            }
        }
    }

    .footer-map-mid {
        display: flex;
        flex-direction: column;
        align-items: center;

        .footer-map-mid-content {
            box-sizing: border-box;
            width: 100%;
            min-width: 960px;
            max-width: 1080px;
            display: flex;
            flex-direction: row;
            justify-content: space-between;

            img {
                width: auto;
                height: 26px;

                &:nth-child(1) {
                    width: 240px;
                }

                &:nth-child(2) {
                    width: 144px;
                }
            }
        }

        padding: 12px 0;
        background-color: #fafafa;
    }

    .footer-map-bottom {
        padding: 16px 0;
        color: #555;
        font-size: 14px;
        color: #555555;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #fafafa;
    }
}

@media (max-width: 960px) {
    .footer-map {
        .footer-map-top {
            padding: 48px 12px;
            box-sizing: border-box;

            &>figure {
                margin-bottom: 23px;

                img {
                    width: 140px;
                    height: 24px;
                }
            }

            ul {
                flex-wrap: wrap;

                li {
                    padding-top: 23px;
                    width: 50%;

                    a {
                        margin-bottom: 16px;
                    }

                    &:last-child {
                        width: 50%;
                    }
                }
            }

            .official-social {
                display: block;

                .official-social-link {
                    display: flex;
                    justify-content: center;

                    a {
                        margin-right: 24px;
                    }
                }

                .official-social-payment {
                    display: flex;
                    margin-top: 30px;
                    flex-direction: column;
                    align-items: center;
                }
            }
        }
    }
}
</style>
